package xupt.se.ttms.idao;
import xupt.se.ttms.dao.*;

//工厂模式
public class DAOFactory {
	public static iStudioDAO creatStudioDAO(){
		return new StudioDAO();
	}
	public static iCustomerDAO creatCustomerDAO(){
		return new CustomerDAO();
	}
	public static iEmployeeDAO creatEmployeeDAO(){
		return new  EmployeeDAO();
	}
	public static iMovieDAO creatMovieDAO(){
		return new MovieDAO();
	}
	public static iTicketDAO creatTicketDAO(){
		return new TicketDAO();
	}
	public static iOrderDAO creatOrderDAO()
	{
		return new OrderDAO();
	}
	public static iPlayDAO creatPlayDAO()
	{
		return new PlayDAO();
	}
	public static iSeatDAO creatSeatDAO()
	{
		return new SeatDAO();
	}
	public static iSaleDAO creatSaleDAO()
	{
		return new SaleDAO();
	}
	
	
}
